FROM artifacts.iflytek.com/docker-private/aisol/aisol_base:base_09

ARG PROJECT_NAME=AISOL_AuditIflytekStrategyManageApi

COPY ./target/${PROJECT_NAME}.zip /usr/server/
RUN cd /usr/server/ && unzip ${PROJECT_NAME}.zip && rm -f ${PROJECT_NAME}.zip
# 增加字体
RUN rm -f /etc/yum.repos.d/CentOS-Base.repo
COPY ./font/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
RUN yum clean all
RUN yum makecache
RUN yum install dejavu-sans-fonts fontconfig -y

CMD ["/bin/bash", "/usr/server/bin/startup.sh"]

